package com.utooo.pojo.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;

@Data
public class BaseDO {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 外键
     */
    @TableField("foreignId")
    private String foreignId;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @TableField("createUserField1001")
    private String createBy;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "createTimeField1002", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 修改人
     */
    @Schema(description = "修改人")
    @TableField(value = "modifyUserField1003", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField("modifyTimeField1004")
    private LocalDateTime updateTime;
}
